package com.management.commons.exception.ExceptionCode;

public enum  DefectTypeExceptionCode {
    GETTYPE_NULL_ERROR(5001,"缺陷类型为空"),
    CREATETYPE_ERROR(5002,"新增失败"),
    DEFECTTYPEISEXISTS_ERROR(5003,"创建失败,不能创建已经存在的缺陷类型"),
    DELETETYPE_ERROR(5004,"删除失败"),
    DISABLEBYTYPEID_ERROR(5005,"修改失败");

    private Integer code;
    private String message;
    DefectTypeExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
